﻿using System;
using System.IO;

namespace Zjh.PackSerializer
{
    public interface IPackConverter
    {
        bool CanConvert(Type objectType);

        bool Read(Stream stream, Type objectType, IPackSerializer serializer, out object output);

        bool Write(Stream stream, Type objectType, object input, IPackSerializer serializer);
    }
}